package com.liam.es.test;

import com.huaban.analysis.jieba.JiebaSegmenter;

import java.util.ArrayList;
import java.util.List;

public class Similarity {



    public static void main(String[] args) {
        // 获取要对比的数据
        List<String> data = initData();

        //
        JiebaSegmenter segmenter = new JiebaSegmenter();
        for (String s : data){
            System.out.println(segmenter.sentenceProcess(s));
        }


    }

    private static List<String> initData() {
        List<String> result = new ArrayList<>();
        result.add("小明硕士毕业于中国科学院");
        result.add("这是一个伸手不见五指的黑夜");
        result.add("贾跃亭回应终身禁入证券市场");
        return result;
    }
}
